package com.example.questionnaire.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.ToString;

/**
 * 
 * 
 * @author hsz
 * @email 1416446590@qq.com
 * @date 2022-10-31 10:19:07
 */
@Data
@TableName("answerer")
public class AnswererEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * id号
	 */
	@TableId
	private Integer id;
	/**
	 * 答者注册密码
	 */
	private String password;
	/**
	 * 性别
	 */
	private String sex;
	/**
	 * 电话号码
	 */
	private String telephone;
	/**
	 * 邮箱
	 */
	private String mail;
	/**
	 * 是否处于“无群组无答卷状态”，是则为1，否则为0
	 */
	private Integer flag;
	/**
	 * 0代表未删除，1代表删除
	 */
	private Integer isDeleted;

//	答者用户名
	private String username;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	public String toString() {
		return "AnswererEntity{" +
				"id=" + id +
				", password='" + password + '\'' +
				", sex='" + sex + '\'' +
				", telephone='" + telephone + '\'' +
				", mail='" + mail + '\'' +
				", flag=" + flag +
				", isDeleted=" + isDeleted +
				", username='" + username + '\'' +
				'}';
	}
}
